/**
 * Clasa Exp se refera la functia exponentiala.
 * O functie exponentiala este de forma f(x)=a^x.
 * Derivata acestei functii este a^x * ln(a)
 */

package q10.Functii.FunctiiElementare;
import q10.Functii.*;

public class Exp extends Functie {
	public static double a; /**valoarea lui a */
	public static final double E=Math.E;
	
	/**
	 *@param aux1
	 *@return String 
	 */
	public String concatTermeni(String aux1){
		String aux;
		int nrP;
		
		nrP = aux1.charAt(0) == '(' ? 0 : 2;
		aux = "sin";
		
		if(nrP != 0) aux += "(";
		
		aux += aux1;
		
		if(nrP != 0) aux +=")";
		
		return aux;
	}
	
	
	/**Metoda concatTermeni(String aux1, String aux2) concateneaza termenii functiei pentru a putea fi afisati
	 * 
	 * @param aux1  primul termen de concatenat
	 * @param aux2  al doilea termen de concatenat
	 * @return String
	 */
	public static String concatTermens(String aux1)
		{
		String aux;
		int nrP= aux1.charAt(0) == '^' ? 0 : 2;
		aux="";
		if (nrP!=0)
			aux=aux+"e";
		aux=aux+"^";
		if (nrP!=0)
			aux=aux+aux1;
		return aux;
		}
	
}
